﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MG.HomeO2O.BLL;
using MG.HomeO2O.Model;
namespace MG.HomeO2O.Admin.Hander
{
    /// <summary>
    /// HandlerRegist 的摘要说明
    /// </summary>
    public class HandlerRegist : IHttpHandler
    {
        UsersBLL bll = new UsersBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            Users model = new Users();
            model.Uname = context.Request["name"];
            model.Upwd = context.Request["pwd"];
              int  i = bll.add(model);
            
            context.Response.Write(i);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}